package processes.jurassicPark;

import os.MiniProcess;
import os.MiniThread;

public class CarThread extends MiniThread
{
	private CarStock stock;
	private int carNum;
	public CarThread(MiniProcess process, String tid)
	{
		super(process, tid);
	}

	@Override
	public void passThreadArguments(Object[] arguments)
	{
		carNum = (Integer)arguments[0];
		stock = (CarStock)arguments[1];
	}

	@Override
	public void run()
	{
		stock.carArrived(carNum, this);
	}
}
